package com.mcxx.modules.temporary.family.service.write;

import com.mcxx.modules.temporary.family.entity.TmpFamilyMemberHistoryEntity;
import com.mcxx.modules.temporary.family.dao.write.TmpFamilyMemberHistoryWriteDao;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@TaTransactional
public class TmpFamilyMemberHistoryWriteService {

    @Autowired
    private TmpFamilyMemberHistoryWriteDao tmpFamilyMemberHistoryWriteDao;


    public int insert(TmpFamilyMemberHistoryEntity tmpFamilyMemberHistory) {
    	return tmpFamilyMemberHistoryWriteDao.insert(tmpFamilyMemberHistory);
    }


    public int insertIgnoreNull(TmpFamilyMemberHistoryEntity tmpFamilyMemberHistory) {
    	return tmpFamilyMemberHistoryWriteDao.insertIgnoreNull(tmpFamilyMemberHistory);
    }


    public int update(TmpFamilyMemberHistoryEntity tmpFamilyMemberHistory) {
    	return tmpFamilyMemberHistoryWriteDao.update(tmpFamilyMemberHistory);
    }


    public int updateIgnoreNull(TmpFamilyMemberHistoryEntity tmpFamilyMemberHistory) {
    	return tmpFamilyMemberHistoryWriteDao.updateIgnoreNull(tmpFamilyMemberHistory);
    }


    public int updateMemberName(String name,String orderId,String memberId) {
        return tmpFamilyMemberHistoryWriteDao.updateMemberName(name,orderId,memberId);
    }


    public int delete(TmpFamilyMemberHistoryEntity tmpFamilyMemberHistory) {
    	return tmpFamilyMemberHistoryWriteDao.delete(tmpFamilyMemberHistory);
    }

}
